package org.orz.story.pms.biz.persistence.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.orz.story.pms.biz.persistence.entities.PmsPermission;

import java.util.List;

/**
 * 权限表
 * 
 * @author orz
 * @email 350679778@qq.com
 * @date 2020-09-06 15:03:18
 */
@Mapper
public interface PmsPermissionMapper extends BaseMapper<PmsPermission> {

    /**
     * 根据角色id查询关联的权限集合
     * @param roleId 角色id
     */
    List<PmsPermission> listAllByRoleId(@Param("roleId") Long roleId);
}
